package com.copc.common.constants;

/**
 * 检验正则
 * @author yuanbin
 */
public class ValidConstants {

    /**
     * 日期校验
     */
    public static final String DATE_VAILD = "((\\d{3}[1-9]|\\d{2}[1-9]\\d|\\d[1-9]\\d{2}|[1-9]\\d{3})(((0[13578]|1[02])(0[1-9]|[12]\\d|3[01]))|((0[469]|11)(0[1-9]|[12]\\d|30))|(02(0[1-9]|[1]\\d|2[0-8]))))|(((\\d{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))0229)";

    /**
     * 日期校验
     * HHmmss
     */
    public static final String TIME_VAILD = "([0-1]?[0-9]|2[0-3])([0-5][0-9])([0-5][0-9])";

    /**
     * 手机号校验
     */
    public static final String PHONE_VAILD ="d{11}$";

    /**
     * 邮箱校验
     */
    public static final String EMAIL_VAILD = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)+$";



}
